const express = require('express');
const serveStatic = require('serve-static');
const path = require('path');

// 创建 Express 应用程序
const app = express();

// 配置 serve-static 中间件以提供静态文件
app.use(serveStatic(path.join(__dirname, 'public')));

// 监听端口
const port = 8088;
app.listen(port, () => {
  console.log(`Server running at http://localhost:${port}/`);
});